part of 'jufei.dart';

//失败
typedef onError = void Function(dynamic msg);

//倒计时结束
typedef onTimeOut = void Function();

//展示
typedef onAdShow = void Function();

//点击
typedef onAdClicked = void Function();

//跳过
typedef onAdCanceled = void Function();

//将视图添加到容器中
typedef onLoaded = void Function();

//关闭
typedef onClosed = void Function();

//广告打开浮层时
typedef onShowAdOverLay = void Function();

//广告关闭浮层时
typedef onAdCloseOverLay = void Function();

//Dislike弹窗展示回调
typedef onDislikeShow = void Function();

//Dislike 弹窗内容被点击时调用
typedef onDislikeSelected = void Function(dynamic i);

///Dislike 弹窗关闭回调
typedef onDislikeCanceled = void Function();

///开屏广告回调
class SplashCallBack {
  onError? error;
  onTimeOut? timeOut;
  onAdShow? adShow;
  onAdClicked? adClicked;
  onAdCanceled? adCanceled;

  SplashCallBack({
    required this.error,
    required this.timeOut,
    required this.adShow,
    required this.adClicked,
    required this.adCanceled
  });
}



class BannerCallBack {
  onError? error;
  onLoaded? loaded;
  onAdShow? adShow;
  onClosed? closed;
  onAdClicked? adClicked;
  onShowAdOverLay? showAdOverLay;
  onAdCloseOverLay? adCloseOverLay;
  onDislikeShow? dislikeShow;
  onDislikeSelected? dislikeSelected;
  onDislikeCanceled? dislikeCanceled;
  BannerCallBack({
    this.error,
    this.loaded,
    this.adShow,
    this.closed,
    this.adClicked,
    this.showAdOverLay,
    this.adCloseOverLay,
    this.dislikeShow,
    this.dislikeSelected,
    this.dislikeCanceled
  });
}